#
# CMake configuration file for SimD
#
cmake_minimum_required (VERSION 2.6)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
project (JOST)
# project version
SET( ${PROJECT_NAME}_MAJOR_VERSION 0)
SET( ${PROJECT_NAME}_MINOR_VERSION 3)
SET( ${PROJECT_NAME}_PATCH_LEVEL 0)
SET( ${PROJECT_NAME}_VERSION 0.3.0)
SET( ${PROJECT_NAME}_SOVERSION 0.3.0)

# project options
OPTION( BUILD_SHARED_LIBS "Set to OFF to build static libraries" ON )
OPTION( INSTALL_DOC "Set to OFF to skip build/install Documentation" ON )


# set default install prefix to project root directory
IF( CMAKE_INSTALL_PREFIX STREQUAL "/usr/local" )
    SET( CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/local" )
ENDIF()

find_package (Doxygen)

if (DOXYGEN_FOUND)
  message(STATUS "Generating JOST Documentation")
  exec_program("cd ..; ${DOXYGEN_EXECUTABLE} doxygen.cfg")
else (DOXYGEN_FOUND)
  message(STATUS "Doxygen not found, I cannot generate the documentation")
endif (DOXYGEN_FOUND)

add_subdirectory (src/jost)

